class Person {
    name = "123";
}

const person = new Person();
console.log(person);

const { name } = person;
const person1 = { name: name };
console.log(person1);
